export default {
  url: "/do/select/template",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/template',
  title: "合同模版",
	tabs: {"code":"templateStatus","list":[],"keyword":"templateStatus"},
  entitys: [{"name":"id","label":"模版编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"模版名称"},{"name":"code","label":"模版编码"},{"name":"templateStatus","label":"状态","code":"templateStatus"},{"name":"context","label":"模版内容","type":"textarea"},{"name":"field","label":"元素内容","type":"inputTag"},{"name":"categoryId","label":"合同类型","type":"contractCategory","depend":"category"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"}],
  columns: ["title","templateStatus"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action p='ort0pm4o' label='添加模版' mode='dialog' fields={["title"]} type='primary' url='/do/put/template' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='hmftvsyo' label='编辑' mode='dialog' fields={["title"]} link data={row} url='/do/patch/template' />
<z-action p='8prdpzmx' label='设计模版' data={row} mode='drawer' href='/system/templateEditor' fixed='design' link map={{"id":"id"}} />
<z-action p='p7gvhyh4' label={row.templateStatus != 2?'发布':null} mode='confirm' link data={row} url='/do/patch/template_publish' />
<z-action p='cj7r9ah7' label={row.templateStatus == 2?'停用':null} mode='confirm' link data={row} url='/do/patch/template_suspend' />
<z-action p='x2jrrk8m' label='删除' mode='confirm' link data={row} url='/do/delete/template' />
        </>
      )
    }
  }
}
  